package extensions;

import com.imagotag.test.TestCaseResult;

/**
 * @projectName: esl-test-frame
 * @className: TestResultWithMessage
 * @description:
 * @author: JLONG
 * @date: 2024/8/12 13:51
 * @version: 1.0
 */
public class TestResultWithMessage implements TestCaseResult {
    private final boolean isFailed;
    private final Iterable<String> message;

    public TestResultWithMessage(boolean isFailed, Iterable<String> message) {
        this.isFailed = isFailed;
        this.message = message;
    }

    @Override
    public boolean isFailed() {
        return this.isFailed;
    }

    @Override
    public Iterable<String> getMessages() {
        return this.message;
    }
}
